package cn.jy.finanlle.controller;

import cn.jy.common.domain.vo.ExpressExchangeVo;
import cn.jy.finanlle.service.ExpressExchangeService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/exchange")
@CrossOrigin
public class ExpressExchangeController {
    @Autowired
    private ExpressExchangeService expressExchangeService;

    @GetMapping("/list")
    public PageInfo<ExpressExchangeVo> selectListExpressExchange(ExpressExchangeVo expressExchangevo){
        return expressExchangeService.selectListExpressExchange(expressExchangevo);
    }
}
